package com.xj.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DispatchListsNumDto implements Serializable {
    String    cinvcode;
    BigDecimal  iquantity;
    Integer  irowno;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DispatchListsNumDto that = (DispatchListsNumDto) o;
        if(that.getIquantity()==null||iquantity==null){
            return false;
        }
        return Objects.equals(cinvcode, that.cinvcode) && Objects.equals(iquantity.floatValue(), that.iquantity.floatValue()) && Objects.equals(irowno, that.irowno);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cinvcode, iquantity, irowno);
    }


}
